<?php
/**
 * Unfuddle TimeEntry Model
 *
 * @package     Unfuddle
 * @subpackage  Data Models
 * @author      Luke Visinoni <luke.visinoni@gmail.com>
 * @copyright   (c) 2010 Luke Visinoni <luke.visinoni@gmail.com>
 * @version     $Id: TimeEntry.php 27 2011-01-15 10:33:26Z luke.visinoni $
 */
class Unfuddle_Model_TimeEntry extends Unfuddle_Model_Abstract {

    protected $_name = 'time-entry';
    
    protected $_fields = array (
        'created-at' => array('type' => 'datetime', 'required' => false, 'read-only' => true),
        'date' => array('type' => 'date', 'required' => false, 'read-only' => false),
        'description' => array('type' => 'text', 'required' => false, 'read-only' => false),
        'hours' => array('type' => 'float', 'required' => false, 'read-only' => false),
        'id' => array('type' => 'integer', 'required' => false, 'read-only' => true),
        'person-id' => array('type' => 'integer', 'required' => false, 'read-only' => false),
        'ticket-id' => array('type' => 'integer', 'required' => false, 'read-only' => true),
        'updated-at' => array('type' => 'datetime', 'required' => false, 'read-only' => true),
    );

}